
// 用户中心中心
import UserCenter from '@/views/userCenter/userCenter'

export const routes = [
  // 用户中心
  {
    path: '/userCenter',
    name: 'userCenter',
    component: UserCenter,
    meta: {
      logoText: '',
      searchVisible: false
    },
    children: [
      // 优惠券商品
      {
        path: '/couponPackage',
        name: 'couponPackage',
        component: () => import('@/views/userCenter/couponPackage/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 订单中心
      {
        path: '/myOrder',
        name: 'myOrder',
        component: () => import('@/views/userCenter/myOrder/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 售后订单
      {
        path: '/orderAfterSale',
        name: 'orderAfterSale',
        component: () => import('@/views/userCenter/orderAfterSale/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 地址
      {
        path: '/signingAddress',
        name: 'signingAddress',
        component: () => import('@/views/userCenter/signingAddress/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 用户信息
      {
        path: '/userInfo',
        name: 'userInfo',
        component: () => import('@/views/userCenter/userInfo/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 更换手机号
      {
        path: '/changePhone',
        name: 'changePhone',
        component: () => import('@/views/userCenter/changeInfo/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      // 评论
      {
        path: '/myEvaluate',
        name: 'myEvaluate',
        component: () => import('@/views/userCenter/myEvaluate/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      {
        path: '/browseRecords',
        name: 'browseRecords',
        component: () => import('@/views/userCenter/browseRecords/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      {
        path: '/favorites',
        name: 'favorites',
        component: () => import('@/views/userCenter/favorites/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      {
        path: '/message',
        name: 'message',
        component: () => import('@/views/userCenter/messageCenter/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      },
      {
        path: '/qaList',
        name: 'qaList',
        component: () => import('@/views/userCenter/qaList/index'),
        meta: {
          logoText: '',
          searchVisible: false
        }
      }
    ]
  },
]